home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: axcdf1.pd.infn.it!LORETI
- From: loreti@axcdf1.pd.infn.it (Maurizio Loreti)
- Subject: Re: Determining the length of an int in string form
- X-Nntp-Posting-Host: axcdf1.pd.infn.it
- Message-ID: <DoMKJ9.Kn9@news.cern.ch>
- Sender: news@news.cern.ch (USENET News System)
- Reply-To: loreti@axcdf1.pd.infn.it
- Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
- References: <3146D058.DD7@cbm.com> <4i7uth$qph@inet-nntp-gw-1.us.oracle.com>,<DoE38u.GIH@iquest.net>
- Date: Thu, 21 Mar 1996 16:01:54 GMT
-
- In article <DoE38u.GIH@iquest.net>, dlmiller@iquest.net (Doug & Rose Miller) writes:
- >Even a 32-bit int is only 9 characters at most, and that's *with* the sign. Why not just declare
- >a string and be done with it? Is storage space that tight for you, that nine bytes matters?
-
- Who said that an integer has at most 32 bits? Why not 64, as I have?
- Or more?
-
- However, the solution is to fprintf the integer to the bit bucket
- (i.e. /dev/null, NLA0:, NIL or what is called on your system) and to
- use its return value.
- --
- Maurizio Loreti http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
- Un. of Padova, Dept. of Physics - Padova, Italy loreti@padova.infn.it
-